{% extends 'tests/elements/base.html' %}

{% block element_type %}0{% endblock %}

{% block class %}exercise{% endblock %}

{% block precontent %}
    {% if exercise.title %}
        <header>
            <h3>{{ exercise.title }}</h3>
        </header>
    {% endif %}
    <main class="{% block exercise_class %}{% endblock %}" data-id="{{ exercise.id }}" data-element-id="{{ exercise.element_id }}">
        {% block content %}
        {% endblock %}
    </main>
    {% if fact.completed %}
        <footer class="check {% if exercise.success == 0 %}not-success{% elif exercise.success == 1 %}success{% elif exercise.success == 2 %}question-result{% endif %}">
            <hr class="check-line">

            <div class="mark-div">
                <div class="mark"></div>
                {% if exercise.success == 0 %}
                    <p><b>Неверно</b>
                {% elif exercise.success == 1 %}
                    <p><b>Верно</b>
                {% elif exercise.success == 2 %}
                    <p><b>Сверяйте с заготовленным ответом</b>
                {% endif %}

                {% block answer %} {% endblock %}</p>
            </div>

        </footer>
    {% endif %}
{% endblock %}